package com.ys.service.eKnowAi.impl;

import com.ys.entity.eKnowAi.EKnowChatLogManage;
import com.ys.mapper.eKnowAi.EKnowAiDiySqlMapper;
import com.ys.mapper.eKnowAi.EKnowChatLogManageMapper;
import com.ys.service.eKnowAi.EKnowChatLogManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("eKnowChatLogManageService")
public class EKnowChatLogManageServiceImpl implements EKnowChatLogManageService {

	@Autowired
	private EKnowChatLogManageMapper eKnowChatLogManageMapper;
	@Autowired
	private EKnowAiDiySqlMapper eKnowAiDiySqlMapper;

	@Override
	public int add(EKnowChatLogManage eKnowChatLogManage) {
		eKnowChatLogManage.setStatus(1);
		int result = eKnowChatLogManageMapper.insert(eKnowChatLogManage);
		return result;
	}


	@Override
	public int update(EKnowChatLogManage eKnowChatLogManage) {
		eKnowChatLogManage.setStatus(1);
		int result = eKnowChatLogManageMapper.update(eKnowChatLogManage);
		return result;
	}


	@Override
	public int del(long id) {
		return eKnowAiDiySqlMapper.deleteEKnowChatLogManage(id);
	}


}
